﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>加载全屏显示控件</title>
    <link href="js/v5.1.3-dist/ol.css" rel="stylesheet" type="text/css" />
    <script src="js/v5.1.3-dist/ol.js" type="text/javascript"></script>
    <link href="css/example.css" rel="stylesheet" />
    <script src="js/InitMap.js"></script>
</head>
<body>
    <div id="map" class="map">
    </div>
    <script type="text/javascript">
        var map = initMap({
            //加载控件到地图容器中
            controls: ol.control.defaults().extend([
                new ol.control.FullScreen()  //加载全屏显示控件（目前支持非IE内核浏览器）
            ])
        });


    </script>
</body>
</html>
